<?php
/*
 * 通过软件调用的API接口类
 */
 class ApiController extends Controller {
 	
	public $loginuserid = 37540533;
	public $user;
	
	function init() {		
		parent::init();			
		$this->user = User::model()->with('shop')->findByPk($this->loginuserid);
		$this->user->uid = $this->user->user_id;
		if(!$this->user) die("用户信息获取失败");
	}
 }
